<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link href="../../plugins/mui/mui.min.css" rel="stylesheet"/>
		<link href="../../css/index/main.css" rel="stylesheet"/>
		<link href="../../css/style.css" rel="stylesheet"/>
		<script src="../../js/statistics.js"></script>
	</head>
	<body>
		<header>
			<span id="sign">签到</span>
			<div class="mui-input-row mui-search">
				<input type="search" class="mui-input-clear input_click" placeholder="搜索你关心的内容">
			</div>
			<span id="all">全部</span>
			<span id="cancel" style="display: none;">取消</span>
		</header>
		<div id="body">
			<div class="head"></div>
			<div class="weather">
				<ul class="clear">
					
				</ul>
			</div>
			<div class="news-box clear">
				<div class="news-icon">
					<img src="../../images/icon/index/news-icon.png"/>
				</div>
				<div class="news-body" id="scroll-box">
					<ul id="scroll">
						
					</ul>
				</div>
			</div>
			<div class="bar-nav first">
				<ul class="clear">
					<li>
						<img src="../../images/icon/index/travel.png">
						<p class="color-4d">走进溧阳</p>
						<a href="../../pages/travel/travel_index.html"></a>
					</li>
					<li>
						<img src="../../images/icon/index/literary.png">
						<p class="color-4d">文体生活</p>
						<a href="../../pages/literary/index.html"></a>
					</li>
					<li>
						<img src="../../images/icon/index/administrator.png">
						<p class="color-4d">行政办事</p>
						<a href="../../pages/executive_housekeeper/law_guide.html"></a>
					</li>
					<li>
						<img src="../../images/icon/index/directory.png">
						<p class="color-4d">企业导航</p>
						<a href="../../pages/directory/index.html"></a>
					</li>
				</ul>
			</div>
			<div class="bar-nav second convenience">
				<div class="title clear">
					<span></span>
					<span>便民</span>
					<span></span>
					<a href=""></a>
				</div>
				<div class="body clear">
					<ul>
						<li class="clear">
							<div>
								<p>在线挂号</p>
								<p>求医问病助手</p>
							</div>
							<img src="../../images/icon/index/convenience-2.png">
							<a href="../executive_housekeeper/registration.html"></a>
						</li>
						<li class="clear">
							<div>
								<p>随手拍</p>
								<p>实时分享</p>
							</div>
							<img src="../../images/icon/index/img-snapshot.png">
							<a href="../life_housekeeper/snapshot.html" ></a>
						</li>
						<li class="clear">
							<div>
								<p>今日菜价</p>
								<p>购菜助手</p>
							</div>
							<img src="../../images/icon/index/convenience-4.png">
							<a href="../life_housekeeper/vegetable_list.html" value="life_cj"></a>
						</li>
						<li class="clear">
							<div>
								<p>饿了么</p>
								<p>饿了就要</p>
							</div>
							<img src="../../images/icon/index/convenience-5.png">
							<a href="https://h5.ele.me" ></a>
						</li>
					</ul>
				</div>
			</div>
			<div class="bar-nav second city">
				<div class="title clear">
					<span></span>
					<span>同城</span>
					<span></span>
					<a href=""></a>
				</div>
				<div class="body clear">
					<ul>
						<li class="clear">
							<div>
								<p>同城论坛</p>
								<p>全民交流</p>
							</div>
							<img src="../../images/icon/index/city-1.png">
							<a href="../city/tribune_index.html"></a>
						</li>
						<li class="clear">
							<div>
								<p>同城活动</p>
								<p>周末去哪玩</p>
							</div>
							<img src="../../images/icon/index/city-2.png">
							<a href="../city/activity_0.html"></a>
						</li>
						<li class="clear">
							<div>
								<p>特色专题</p>
								<p>畅谈新生活</p>
							</div>
							<img src="../../images/icon/index/city-3.png">
							<a href="../city/topic.html"></a>
						</li>
						<li class="clear">
							<div>
								<p>溧阳新闻</p>
								<p>掌上电视</p>
							</div>
							<img src="../../images/icon/index/culture-3.png">
							<a href="../news_list/video_news_index.html"></a>
						</li>
					</ul>
				</div>
			</div>
			<div class="bar-nav third life">
				<div class="title clear">
					<span></span>
					<span>民生</span>
					<span></span>
					<a href=""></a>
				</div>
				<div class="body clear">
					<div class="child-box">
						<ul>
							<li class="clear">
								<div>
									<p>民生通讯</p>
									<p>本地服务</p>
								</div>
								<img src="../../images/icon/index/life-1.png">
								<a href="../yellowPages/index.html"></a>
							</li>
							<li class="clear">
								<div>
									<p>重名查询</p>
									<p>查找同名</p>
								</div>
								<img src="../../images/icon/index/life-2.png">
								<a href="http://www.wjw.jsga.gov.cn/cname/index"></a>
							</li>
						</ul>
					</div>
					<div class="child-box big">
						<p>学区划分</p>
						<img src="../../images/icon/index/life-3.png" />
						<a href="../executive_housekeeper/office.html"></a>
						<p>详细学区分布</p>
					</div>
				</div>
			</div>
			<div class="bar-nav third culture">
				<div class="title clear">
					<span></span>
					<span>旅游</span>
					<span></span>
					<a href=""></a>
				</div>
				<div class="body clear">
					<div class="child-box big">
						<p>全域旅游</p>
						<img src="../../images/icon/index/culture-2.png"/>
						<a href="../city/tour.html"></a>
						<p>花样玩转溧阳</p>
					</div>
					<div class="child-box">
						<ul>
							<li class="clear">
								<div>
									<p>1号公路</p>
									<p>最美风景</p>
								</div>
								<img src="../../images/icon/index/culture-1.png">
								<a href="https://www.ly-xing.com/guidetours/#/home"></a>
							</li>
							<li class="clear">
								<div>
									<p>溧阳全景</p>
									<p>360°展现</p>
								</div>
								<img src="../../images/icon/index/city-4.png">
								<a href="http://720yun.com/t/e2d25up8w1g?from=singlemessage&isappinstalled=0&pano_id=1615541"></a>
							</li>
						</ul>
					</div>
				</div>
			</div>
			<div class="bar-nav second traffic">
				<div class="title clear">
					<span></span>
					<span>交通</span>
					<span></span>
					<a href=""></a>
				</div>
				<div class="body clear">
					<ul>
						<li class="clear">
							<div>
								<p>实时路况</p>
								<p>尽在掌中</p>
							</div>
							<img src="../../images/icon/index/traffic-5.png">
							<a href="http://yzw.0574ztnet.com/wechat/default/sslk/map_zzly.html"></a>
						</li>
						<li class="clear">
							<div>
								<p>一键挪车</p>
								<p>自助服务</p>
							</div>
							<img src="../../images/icon/index/traffic-2.png">
							<a href="http://www.wjw.jsga.gov.cn/vehicle/vehicle"></a>
						</li>
						<li class="clear">
							<div>
								<p>客运查询</p>
								<p>车票提前查</p>
							</div>
							<img src="../../images/icon/index/traffic-3.png">
							<a href="http://www.ly-xing.com/Weixin/page/LongBus.html?tt=1486979241662"></a>
						</li>
						<li class="clear">
							<div>
								<p>公交查询</p>
								<p>路线/票价</p>
							</div>
							<img src="../../images/icon/index/traffic-4.png">
							<a href="http://www.ly-xing.com/html5/bus4WX.html?phone=j+iLpIfHcsJT7TrMRYtcBw=="></a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div id="search" style="display: none;">
			<div class="recommend">
				<p>相关推荐</p>
				<div>
					<ul class="clear">
					</ul>
				</div>
			</div>
			<div class="history">
				<div class="clear">
					<span>历史搜索</span>
					<img id="trash" src="../../images/icon/index/trash.png" />
				</div>
				<div>
					<ul>
						
					</ul>
				</div>
			</div>
			<div class='modal_search' style='display:none;'>
				
			</div>
		</div>
		<script src="../../plugins/template/template.js"></script>
		<script src="../../plugins/jquery/jquery-3.1.0.min.js"></script>
		<script src="../../plugins/mui/mui.min.js"></script>
		<script src="../../js/getApiToken.js"></script>
		<script src="../../js/fontset.js"></script>
		<script src="../../js/md5.js"></script>
		<script src="../../js/update.js" ></script>
		<script id="banner" type="text/html">
			<div class="mui-slider" id="slider">
				<div class="mui-slider-group mui-slider-loop">
				    <!--支持循环，需要重复图片节点-->
				    <div class="mui-slider-item mui-slider-item-duplicate">
				    	<a href="#">
				    		<img src="{{baseUrl}}{{data[3].path}}"/>
				    	</a>
				    </div>
		    		{{each data as value i}}
			    		<div class="mui-slider-item" onclick="bannerLeft('{{value.url}}','{{value.title}}')">
			    			<a href="#">
			    				<img src="{{baseUrl}}{{value.path}}" />
			    			</a>
			    		</div>
		    		{{/each}}
		    		<div class="mui-slider-item mui-slider-item-duplicate">
		    			<a href="#">
		    				<img src="{{baseUrl}}{{data[0].path}}" />
		    			</a>
		    		</div>
		    	</div>
		    	<div class="mui-slider-indicator mui-text-right">
					<div class="mui-indicator mui-active"></div>
					<div class="mui-indicator"></div>
					<div class="mui-indicator"></div>
					<div class="mui-indicator"></div>
				</div>
    		</div>
    	</script>
    	<script id="new-list" type="text/html">
    		<ul>
    			{{each data as value i}}
					<li class="clear">
						<img src="../../images/icon/index/label-{{value.type}}.png" />
						<span>{{value.title}}</span>
					</li>
				{{/each}}
			</ul>
    	</script>
    	<script id="weather" type="text/html">
    		{{each data as value i}}
    		<li>
				<img src="../../images/icon/index/day-{{i}}.png" />
				<div>
					<p id="temperature-1">{{value.tmp.min}} - {{value.tmp.max}}℃</p>
					<p id="weather-1">{{value.cond.txt_d}}</p>
				</div>
			</li>
    		{{/each}}
    	</script>
    	<script id="recommend" type="text/html">
    		{{each data as value i}}
    		<li href="{{value.path}}" onclick="searchLeft('{{value.path}}','{{value.name}}','{{value.storage_key}}')">{{value.name}}</li>
    		{{/each}}
    	</script>
    	<script id="search-list" type="text/html">
			<ul class='mui-table-view' class="search-list">
				{{each data as value i}}
				<li class='mui-table-view-cell' onclick="searchLeft('{{value.path}}','{{value.name}}','{{value.storage_key}}')">{{value.name}}</li>
				{{/each}}	
			</ul>
		</script>
		<script id="history" type="text/html">
			{{each data as value i}}
			<li>{{value}}</li>
			{{/each}}
		</script>
    	<script>
    		mui.init({
    			keyEventBind: {
					backbutton: false,  
					menubutton: true   
				}
    		});
    		mui.plusReady(function(){
    			version(getVersion);
    			var history = plus.storage.getItem('history')?plus.storage.getItem('history'):[];
    			//历史搜索
    			if(typeof(history) == 'string'){
    				history = history.split(',');
    			}
    			initHistory(history);
    			
    			
    			//跳转新闻
    			$(".news-box").on('tap',function(e){
    				mui.openWindow({
    					url:'../news_list/index.html',
    					id:'news_list/index',
    					show:{
      						autoShow:true,
      						aniShow:'fade-in'
      					}
    				});
    				e.preventDefault();
    			});
    			//各个模块title的跳转
    			$(".title").on('tap',function(e){
    				var name = $(this).parents('.bar-nav').attr('class').split(' ');
    				mui.openWindow({
    					url:'entire.html',
    					id:'entire_html',
    					show:{
      						autoShow:true,
      						aniShow:'fade-in'
	      				},
	      				waiting:{
				      		autoShow:true,//自动显示等待框，默认为true
				      		title:'正在加载...',//等待对话框上显示的提示内容
      					},
      					extras:{
      						name:name[2]
      					}
    				});
    				e.preventDefault();
    			});
    			//页面模块的跳转
    			$(".body li,.big").on('tap',function(){
    				var title = $(this).find('p:first-child').text(),
    					href = $(this).find('a').attr('href'),
    					company = $(this).find('a').attr('company'),
    					value = $(this).find('a').attr('value');
    				
					if(href.indexOf('http')== -1 && href.indexOf('https') == -1){
						if(href.indexOf('tribune_index') == -1){
							var id = href;
						}else{
							var id = 'tribune_index';
						}
    					mui.openWindow({
		    				url:href,
		    				id:id,
		    				waiting:{
					      		autoShow:true,//自动显示等待框，默认为true
					      		title:'正在加载...'//等待对话框上显示的提示内容
	      					},
	      					show:{
	      						autoShow:true,
	      						aniShow:'fade-in'
	      					},
	      					extras:{
	      						type:'all'
	      					}
		    			});
	    			}else{
	    				mui.openWindow({
	    					url:'../life_housekeeper/detail.html',
							id:'detail.html',
	    					extras:{
						    	'link':href,
							    'title':title,
							    'life':company,
							    'isStorage':value
								//自定义扩展参数，可以用来处理页面间传值
							},
	    					waiting:{
					      		autoShow:true,//自动显示等待框，默认为true
					      		title:'正在加载...'//等待对话框上显示的提示内容
	      					},
	      					show:{
	      						autoShow:true,
	      						aniShow:'fade-in'
	      					}
	    				})
	    			}
    				
    			});
    			//第一排导航栏的跳转
    			$(".first").on('tap','li',function(item){
    				var href = $(this).find("a").attr("href");
    				mui.openWindow({
    					url:href,
    					id:href,
    					waiting:{
				      		autoShow:true,//自动显示等待框，默认为true
				      		title:'正在加载...'//等待对话框上显示的提示内容
      					},
      					show:{
      						autoShow:true,
      						aniShow:'fade-in'
      					},
      					extras:{
      						type:'all'
      					}
    				});
    				console.log(href)
    			});
				//签到sign
				$('#sign').on('tap',function(e){
					mui.openWindow({
						url:'../exchange/index.html',
						id:'score',
						waiting:{
							autoShow:true,//自动显示等待框，默认为true
							title:'正在加载...'//等待对话框上显示的提示内容
						},
						show:{
							autoShow:true,
							aniShow:'fade-in'
						},
						extras:{
							toSign:true
						}
					})
				});
    			//跳转到全部页面
    			$("#all").on('tap',function(e){
    				mui.openWindow({
    					url:'entire.html',
    					id:'entire_html',
    					show:{
      						autoShow:true,
      						aniShow:'fade-in'
	      				},
	      				waiting:{
				      		autoShow:true,//自动显示等待框，默认为true
				      		title:'正在加载...'//等待对话框上显示的提示内容
      					}
    				});
    				e.preventDefault();
    			});
    			//清楚历史记录
    			$("#trash").on('tap',function(e){
    				$(".input_click").off('blur');
    				$(this).parents('.history').find('ul').empty();
    				plus.storage.removeItem('history');
    				e.preventDefault();
    			});
    			//获取搜索的相关推荐
    			myAjax('search/search/index','get',{},function(data){
    				if(data.success){
    					var list = {
    						data:data.suggest
    					};
    					var html = template('recommend',list);
    					$(".recommend ul").append(html);
    				}
    			});
    			//搜索功能
    			var nameProving = /[\u4E00-\u9FA5]*/;
				$(".input_click").keyup(function(){
					var content = $(this).val();
					if(nameProving.test(content) && content.length > 0){
						if(history.length = 3){
							history.splice(2,1);
						}
						history.unshift(content);
						plus.storage.setItem('history',history.toString());
						initHistory(history);
						$(".recommend,.history").hide();
						$(".modal_search").show();
						myAnotherAjax('search/Search/search','post',{'key':content},function(data){
							if(data.success){
								if(data.search.length > 0){
									initList(data);	
								}else{
									var html = '<div class="search-none">'+
													'<p>没有查询到“'+content+
													'”的相关内容</p>'+
													'<p>请重新搜索</p>'+
												'</div>';	
									$(".modal_search").html(html);
								}
							}
							
						})
					} else if(content.length == 0){
						$(".modal_search").html('').hide();
						$(".recommend,.history").show();
					}
				});
    			//天气预报
    			mui.ajax('https://free-api.heweather.com/v5/forecast?city=liyang&key=36decb39b3e04704aa28ee248a1927ae',{
    				type:'get',
    				dataType:'json',
    				timeout:10000,
    				data:{},
    				success:function(data){
    					var list = {
    						data:data.HeWeather5[0].daily_forecast
    					}
    					var html = template('weather',list);
    					$(".weather ul").append(html);
    				},
    				error:function(xhr,type,errorThrown){
    					//mui.alert('获取天气出错！')
    					mui.toast('天气预报出了点小状况，请稍后再试哦');
    				}
    			});
    			//获取新闻
    			myAjax('news/news/getThreeTopNews','get',{},function(data){
    				if(data.success){
    					var list = {
    						data:data.data
    					};
    					var html = template('new-list',list);
    					$("#scroll").append(html);
    				}
    			});
    			//获取banner
    			myAjax('base/banner/getbanner','get',{},function(data){
    				if(data.success){
    					var list = {
    						data:data.data,
    						baseUrl:_baseUrl
    					};
    					var html = template('banner',list);
    					$(".head").append(html);
    					var gallery = mui('.mui-slider');
						gallery.slider({
						  interval:5000//自动轮播周期，若为0则不自动播放，默认为0；
						});
    				}
    			});
    			
    		});
    		$(function(){
    			initScroll();
    			$("#search").on('tap',function(){
    				$(".input_click").off('blur');
    			});
    			$(".mui-search").on('tap',function(e){
//  				//强制调起输入法
					var Context = plus.android.importClass("android.content.Context");
		            var InputMethodManager = plus.android.importClass("android.view.inputmethod.InputMethodManager");
		            var main = plus.android.runtimeMainActivity();
		            var imm = main.getSystemService(Context.INPUT_METHOD_SERVICE);
		            imm.toggleSoftInput(0, InputMethodManager.SHOW_FORCED);
    				
    				$(this).addClass('mui-search-click');
    				$("#all,#sign,#body").hide();
    				$("#cancel,#search").show();
    				$(".input_click").focus();
    				e.preventDefault();
    			});
    			$("#cancel").on('tap',function(e){
    				$('.mui-search').removeClass('mui-search-click');
    				$("#all,#sign,#body,.recommend,.history").show();
    				$("#cancel,#search").hide();
    				$(".modal_search").html('').hide();
    				$(".input_click").blur().val('');
    				e.preventDefault();
    			});
    			$(".input_click").blur(function(e){
//  				//强制收回键盘
					var Context = plus.android.importClass("android.content.Context"); 
		            var InputMethodManager = plus.android.importClass("android.view.inputmethod.InputMethodManager");
		            var main = plus.android.runtimeMainActivity();
		            var imm = main.getSystemService(Context.INPUT_METHOD_SERVICE);
		            imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
		            
		            var content = $(this).val();
					if(content.length == 0){
			            $('.mui-search').removeClass('mui-search-click');
	    				$("#all,#sign,#body,.recommend,.history").show();
	    				$("#cancel,#search").hide();
	    				$(".modal_search").html('').hide();
	    				$(".input_click").val('');
    				}
    				e.preventDefault();
    			})
    		});
    		//历史记录
    		function initHistory(data){
    			var list = {
					data:data
				};
				var html = template('history',list);
				$(".history ul").html(html);
    		}
    		//搜索
    		function initList(data){
    			var list = {
					data:data.search
				};
				var html = template('search-list',list);
				$(".modal_search").html(html);
    		}
    		//新闻跳转
    		function goNewList(id,img){
    			mui.openWindow({
    				url:'../news_list/detail.html',
    				id:'detail.html',
    				extras:{
    					detail_id:id,
    					shareimg:img
    				},
    				waiting:{
			      		autoShow:true,//自动显示等待框，默认为true
			      		title:'正在加载...',//等待对话框上显示的提示内容
					},
					show:{
						autoShow:true,
						aniShow:'fade-in'
					}
    			});
    		}
    		
    		//页面跳转
    		function bannerLeft(myurl,title,storage){
    			if(myurl.indexOf('http')== -1 && myurl.indexOf('https') == -1){
    				if(myurl.indexOf('news_list') == -1){
    					mui.openWindow({
		    				url:myurl,
		    				id:myurl,
		    				waiting:{
					      		autoShow:true,//自动显示等待框，默认为true
					      		title:'正在加载...',//等待对话框上显示的提示内容
	      					},
	      					show:{
	      						autoShow:true,
	      						aniShow:'fade-in'
	      					}
		    			});
    				}else {
    					if (myurl.indexOf('id') >= 0){
	    					var sbr = myurl.search('id');
	    					id = myurl.substring(sbr+3,myurl.length);
	    					console.log(id)
	    					mui.openWindow({
	    						url:'../news_list/detail.html',
	    						id:'detail.html',
	    						extras:{
	    							detail_id:id,
	    							shareimg:'_www/logo.png'
	    						},
	    						waiting:{
						      		autoShow:true,//自动显示等待框，默认为true
						      		title:'正在加载...',//等待对话框上显示的提示内容
								},
								show:{
									autoShow:true,
									aniShow:'fade-in'
								}
	    					})
    					}
    				}
    			}else{
    				if(title == '1号公路' && mui.openWindowWithTitle){	
						openTitleView(myurl,myurl,title);
						return;	
					}
    				mui.openWindow({
    					url:'../life_housekeeper/detail.html',
						id:'detail.html',
    					extras:{
					    	'link':myurl,
						    'title':title,
//						    'life':company,
						    'isStorage':storage
							//自定义扩展参数，可以用来处理页面间传值
						},
    					waiting:{
				      		autoShow:true,//自动显示等待框，默认为true
				      		title:'正在加载...',//等待对话框上显示的提示内容
      					},
      					show:{
      						autoShow:true,
      						aniShow:'fade-in'
      					}
    				})
    			}
    		}
    		//搜索跳转
    		function searchLeft(href,title,value){
    			var company = '';
    			if(href.indexOf('http')== -1 && href.indexOf('https') == -1){
					if(href.indexOf('tribune_index') == -1){
						var id = href;
					}else{
						var id = 'tribune_index';
					}
					mui.openWindow({
	    				url:href,
	    				id:id,
	    				waiting:{
				      		autoShow:true,//自动显示等待框，默认为true
				      		title:'正在加载...',//等待对话框上显示的提示内容
      					},
      					show:{
      						autoShow:true,
      						aniShow:'fade-in'
      					},
      					extras:{
      						type:'all'
      					}
	    			});
    			}else{
    				console.log(href)
    				if(title == '1号公路' && mui.openWindowWithTitle){	
						openTitleView(href,id,title);
						return;	
					}
    				mui.openWindow({
    					url:'../life_housekeeper/detail.html',
						id:'detail.html',
    					extras:{
					    	'link':href,
						    'title':title,
						    'life':company,
						    'isStorage':value
							//自定义扩展参数，可以用来处理页面间传值
						},
    					waiting:{
				      		autoShow:true,//自动显示等待框，默认为true
				      		title:'正在加载...',//等待对话框上显示的提示内容
      					},
      					show:{
      						autoShow:true,
      						aniShow:'fade-in'
      					}
    				})
    			}
    		}
    		//消息滚动
    		function initScroll(){
    			var $uList = $("#scroll-box ul");
			    var timer = null;
				   //触摸清空定时器
			    $uList.hover(function () {
				    //clearInterval(timer);
			    	},function () {//离开启动定时器
					    timer = setInterval(function () {
				        scrollList($uList);
				    },2500);
			   	}).trigger("mouseleave"); //自动触发触摸事件
				   //滚动动画
			    function scrollList(obj) {
				    //获得当前<li>的高度
					var scrollHeight = $("#scroll li:first").height();
					//滚动出一个<li>的高度
					$uList.stop().animate({marginTop:-scrollHeight},600,function () {
				 	//动画结束后，将当前<ul>marginTop置为初始值0状态，再将第一个<li>拼接到末尾。
				 		$uList.css({marginTop:0}).find("li:first").appendTo($uList);
			    	});
			    }
    		}
    		//打开原生title页面
    		function openTitleView(url,id,title){
    			var webview =mui.openWindowWithTitle({
				    url:url,
				    id:id,
					preload: true,
					waiting:{
			      		autoShow:true,//自动显示等待框，默认为true
			      		title:'正在加载...',//等待对话框上显示的提示内容
  					},
  					show:{
  						autoShow:true,
  						aniShow:'fade-in'
  					}
				},{
				    title:{//标题配置
				        text:title,//标题文字
				    },
				    back:{//左上角返回箭头
				        image:{
				            base64Data:''
				        },
				        click:function(){
				        	console.log(plus.webview.getWebviewById('ly-xing'));
				        	var _self =  plus.webview.getWebviewById('ly-xing');
				        	//_self.close();
				        	_self.canBack(function(event){
				                var canBack = event.canBack;
				                console.log(canBack);
				                if(canBack){
				                    _self.back();
				                }else{
				                    _self.close();
				                }
				            })
				        }
				    }
				})
    		}
    		
    	</script>
	</body>
</html>